import requests
# 登录
class Smart_api(object):
    @classmethod
    def login(cls,json_data):
        url="https://testapi.newdjk.cn/SSOAPI/Doctor/Login"
        header={"Content-Type":"application/json"}
        resp=requests.post(url=url,headers=header,json=json_data)
        return resp

if __name__ == '__main__':
   data= {"Mobile": 13322223333, "Type": 2, "Code": "x88888888"}
   resp=Smart_api.login(data)
   print(resp.json())
